<?php 

/**
 * Joomla! 1.5 component arts_curriculum
 * @package com_arts_curriculum
 **/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

JTable::addIncludePath(JPATH_COMPONENT.DS.'tables');
  
$controller = JRequest::getCmd('controller', 'items');

switch ($controller) {
	default:
	$controller = 'items';	
	case 'items':	

	case 'vocab':
		require_once( JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php' );
		$controllerName = 'Arts_curriculumController'.$controller;
		$controller = new $controllerName();
		$controller->execute( JRequest::getCmd('task') );
		$controller->redirect();
	
	break;	
}
